package com.example.design.shejimoshi.structure.compose;

/**
 * @Description TODO
 * @date 2022/10/25 14:44
 * @Author liuzhihui
 * @Version 1.0
 */
public abstract class HumanResource {
    protected Long id;
    protected double salary;

    public HumanResource(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public abstract double calculateSalary();
}
